home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-12-26 | 825 b | 37 lines | [TEXT/MPS ] |
- CASE OBJ
- ;
- ; Install routine, mostly grabbed from Apple's INIT/CDEV combo. It installs
- ; the patch to PrGlue, & shows the appropriate icon. Nothing exciting.
- ;
- include 'Traps.a'
-
- INITInstall PROC EXPORT
- import MyControl:code
- import setTrap:code
- import Initialize:code
-
- FirstResByte EQU MyControl
- start movem.l a0-a6/d0-d7, -(sp) ; save the registers!
-
- move.w #$a004, d0
- _GetTrapAddress
- bsr setTrap
-
- bsr Initialize ; initialize init
- bne.s exit ; if return value in d0, blow out
-
- lea INITInstall, a0
- _RecoverHandle
- move.l a0, -(a7)
- _DetachResource
-
- lea MyControl, a0
- move.w #$a004, d0
- _SetTrapAddress ,NEWOS
-
- exit movem.l (sp)+, a0-a6/d0-d7 ; restore the registers
- rts ; return to INIT 31
-
- ENDP
- END
-